package com.hmall.search.utils;
 
public class ThreadLocal {
 
    private static final java.lang.ThreadLocal<String> userIdHolder = new java.lang.ThreadLocal<>();
 
    public static void setUserId(String userId) {
        userIdHolder.set(userId);
    }
 
    public static String getUserId() {
        return userIdHolder.get();
    }
 
    public static void clear() {
        userIdHolder.remove();
    }
}